<template>
    <div theme='light' class="bodydiv">
        <!-- <el-button @click="charngetheme">test</el-button> -->
        <div class="smenu">
            <div class="othermenu" @click="showsmenu">
            </div>
            <div class="menu">
                <div @click="scrollTo('AboutMe',true)">
                    <p>关于</p>
                </div>
                <div @click="scrollTo('SKILLS',true)">
                    <p>技能</p>
                </div>
                <div @click="scrollTo('PersonalJourney',true)">
                    <p>履历</p>
                </div>
                <div @click="scrollTo('Portfolio',true)">
                    <p>作品</p>
                </div>
                <div @click="scrollTo('Contactme',true)">
                    <p>联系</p>
                </div>
            </div>
        </div>

        <div class="banner">
            <div class="nav">
                <div class="leftcontent">个人简历</div>
                <div class="rightcontent">
                    <ul>
                        <!-- <li>主页</li> -->
                        <li @click="scrollTo('AboutMe')">关于</li>
                        <li @click="scrollTo('SKILLS')">技能</li>
                        <li @click="scrollTo('PersonalJourney')">履历</li>
                        <li @click="scrollTo('Portfolio')">作品</li>
                        <li @click="scrollTo('Contactme')">联系</li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="container">
            <div class="head">
                <div class="leftlink">
                    <ul>
                        <li><el-icon>
                                <Flag />
                            </el-icon></li>
                        <li><el-icon>
                                <BrushFilled />
                            </el-icon></li>
                        <li><el-icon>
                                <WindPower />
                            </el-icon></li>
                    </ul>
                </div>
                <div class="rightpanel">
                    <div class="description">
                        <div>
                            <h1>HI,I'M 吴夏峰</h1>
                            <h3>我是全栈程序员</h3>
                            <p>我在杭州</p>
                            <p>技术栈:C# EXTJS VUE JAVASCRIPT HTML CSS </p>
                            <p>MYSQL SQLSERVER ORACLE </p>
                        </div>
                        <div class="buttons">
                            <el-button color="#626aef" @click="scrollTo('Contactme')" size="large">Contact Me<el-icon class="el-icon--right">
                                    <Upload />
                                </el-icon>
                            </el-button>
                            <el-button class="scrolldown" @click="scrollTo('SKILLS')" text><el-icon>
                                    <Mouse />
                                </el-icon>scroll down
                            </el-button>
                        </div>
                    </div>
                    <div class="img">
                        <svg class="home__blob" viewBox="0 0 200 187" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
                            <mask id="mask0" mask-type="alpha">
                                <path d="M190.312 36.4879C206.582 62.1187 201.309 102.826 182.328 134.186C163.346 165.547 
                                130.807 187.559 100.226 186.353C69.6454 185.297 41.0228 161.023 21.7403 129.362C2.45775 
                                97.8511 -7.48481 59.1033 6.67581 34.5279C20.9871 10.1032 59.7028 -0.149132 97.9666 
                                0.00163737C136.23 0.303176 174.193 10.857 190.312 36.4879Z" />
                            </mask>
                            <g mask="url(#mask0)">
                                <path d="M190.312 36.4879C206.582 62.1187 201.309 102.826 182.328 134.186C163.346 
                                165.547 130.807 187.559 100.226 186.353C69.6454 185.297 41.0228 161.023 21.7403 
                                129.362C2.45775 97.8511 -7.48481 59.1033 6.67581 34.5279C20.9871 10.1032 59.7028 
                                -0.149132 97.9666 0.00163737C136.23 0.303176 174.193 10.857 190.312 36.4879Z" />
                                <image class="home__blob-img" x="0" y="-30" xlink:href="@/assets/images/cat.png" />
                            </g>
                        </svg>

                    </div>
                </div>
            </div>
            <div class="main">
                <div class="main-row AboutMe">
                    <div class="title">
                        <h1>About Me</h1>
                    </div>
                    <div class="subtitle">
                        <p>自我介绍</p>
                    </div>
                    <div class="content1">
                        <div class="child-1">
                            <img src="@/assets/images/about.png" />
                        </div>
                        <div class="child-2">
                            <p>
                                本人目前在职，司职一家科技公司前端开发工程师，任职10年，由最开始的.net + EXTJS开发到c#的应用程序开发到数据库存储过程的开发，再到前两年vue流行开始全面转向前端开发
                            </p>
                            <div class="express">
                                <div class="col">
                                    <div class="des">工作经验(年)</div>
                                    <div class="time">10+</div>
                                </div>
                                <div class="col">
                                    <div class="des">大型项目经验</div>
                                    <div class="time">10+</div>

                                </div>
                                <div class="col">
                                    <div class="des">待过公司</div>
                                    <div class="time">3</div>

                                </div>
                            </div>
                            <div class="button">
                                <el-button color="#626aef" @click="jumpto" size="large">个人GIT</el-button>

                            </div>
                        </div>
                    </div>
                </div>

                <div class="main-row SKILLS">
                    <div class="title">
                        <h1>SKILLS</h1>
                    </div>
                    <div class="subtitle">
                        <p>技能</p>
                    </div>
                    <div class="content2">
                        <div class="collapse" id="frontdeve">
                            <div class="type" @click="showandhide('frontdeve')">

                                <div class="collapsetitle">
                                    <div class="collapseicon">
                                        <el-icon>
                                            <Umbrella />
                                        </el-icon>
                                    </div>
                                    <div>
                                        <h2>前端技术</h2>
                                        <h3>Frontend developer</h3>
                                    </div>

                                </div>
                                <div>
                                    <el-icon>
                                        <ArrowDownBold />
                                    </el-icon>
                                </div>
                            </div>
                            <div class="progressgroup">
                                <div class="progress">
                                    <div class="des">
                                        <div class="name">HTML</div>
                                        <div class="percent">90%</div>
                                    </div>
                                    <div class="progressvalue">
                                        <div class="value" style="width:90%"></div>
                                    </div>
                                </div>
                                <div class="progress">
                                    <div class="des">
                                        <div class="name">JAVASCRIPT</div>
                                        <div class="percent">85%</div>
                                    </div>
                                    <div class="progressvalue">
                                        <div class="value" style="width:85%"></div>
                                    </div>
                                </div>
                                <div class="progress">
                                    <div class="des">
                                        <div class="name">CSS</div>
                                        <div class="percent">80%</div>
                                    </div>
                                    <div class="progressvalue">
                                        <div class="value" style="width:80%"></div>
                                    </div>
                                </div>
                                <div class="progress">
                                    <div class="des">
                                        <div class="name">VUE</div>
                                        <div class="percent">90%</div>
                                    </div>
                                    <div class="progressvalue">
                                        <div class="value" style="width:90%"></div>
                                    </div>
                                </div>
                                <div class="progress">
                                    <div class="des">
                                        <div class="name">CANVAS</div>
                                        <div class="percent">20%</div>
                                    </div>
                                    <div class="progressvalue">
                                        <div class="value" style="width:20%"></div>
                                    </div>
                                </div>
                                <div class="progress">
                                    <div class="des">
                                        <div class="name">SVG</div>
                                        <div class="percent">20%</div>
                                    </div>
                                    <div class="progressvalue">
                                        <div class="value" style="width:20%"></div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="collapse" id="backdeve">
                            <div class="type" @click="showandhide('backdeve')">

                                <div class="collapsetitle">
                                    <div class="collapseicon">
                                        <el-icon>
                                            <Coin />
                                        </el-icon>
                                    </div>
                                    <div>
                                        <h2>后端技术</h2>
                                        <h3>Backend developer</h3>
                                    </div>

                                </div>
                                <div>
                                    <el-icon>
                                        <ArrowDownBold />
                                    </el-icon>
                                </div>
                            </div>
                            <div class="progressgroup">
                                <div class="progress">
                                    <div class="des">
                                        <div class="name">.net</div>
                                        <div class="percent">60%</div>
                                    </div>
                                    <div class="progressvalue">
                                        <div class="value" style="width:60%"></div>
                                    </div>
                                </div>
                                <div class="progress">
                                    <div class="des">
                                        <div class="name">nodejs</div>
                                        <div class="percent">85%</div>
                                    </div>
                                    <div class="progressvalue">
                                        <div class="value" style="width:85%"></div>
                                    </div>
                                </div>
                                <div class="progress">
                                    <div class="des">
                                        <div class="name">sqlserver</div>
                                        <div class="percent">80%</div>
                                    </div>
                                    <div class="progressvalue">
                                        <div class="value" style="width:80%"></div>
                                    </div>
                                </div>
                                <div class="progress">
                                    <div class="des">
                                        <div class="name">oracle</div>
                                        <div class="percent">70%</div>
                                    </div>
                                    <div class="progressvalue">
                                        <div class="value" style="width:70%"></div>
                                    </div>
                                </div>
                                <div class="progress">
                                    <div class="des">
                                        <div class="name">mysql</div>
                                        <div class="percent">60%</div>
                                    </div>
                                    <div class="progressvalue">
                                        <div class="value" style="width:60%"></div>
                                    </div>
                                </div>
                                <div class="progress">
                                    <div class="des">
                                        <div class="name">python</div>
                                        <div class="percent">20%</div>
                                    </div>
                                    <div class="progressvalue">
                                        <div class="value" style="width:20%"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="main-row PersonalJourney">
                    <div class="title">
                        <h1>Personal Journey</h1>
                    </div>
                    <div class="subtitle">
                        <p>个人履历</p>
                    </div>
                    <div class="content3">
                        <div class="tabs">
                            <div class="tabpanel1">
                                <div class="title">
                                    <h3 class="education tabactive" @click="changeTab('education')">教育经历</h3>
                                    <h3 class="work" @click="changeTab('work')">工作经历</h3>
                                </div>
                                <div class="timeline" id="educationtab">
                                    <div class="timecard">
                                        <div class="school">浙江理工大学</div>
                                        <div class="profession">电子信息科学与技术</div>
                                        <div class="timerange">2004/09/01-2008/07/01</div>
                                    </div>
                                    <div class="timecard">
                                        <div>
                                            <div class="school">温州第八中学</div>
                                            <div class="profession">高中</div>
                                            <div class="timerange">2001-2004</div>
                                        </div>

                                    </div>
                                    <div class="timecard">
                                        <div class="school">温州第七中学</div>
                                        <div class="profession">初中</div>
                                        <div class="timerange">1998-2001</div>
                                    </div>
                                </div>
                                <div class="timeline activetab" id="worktab">
                                    <div class="timecard ">
                                        <div class="school">杭州东信网络技术有限公司</div>
                                        <div class="profession">高级软件工程师</div>
                                        <div class="timerange">2011/09/01-至今</div>
                                    </div>
                                    <div class="timecard">
                                        <div>
                                            <div class="school">杭州初灵技术有限公司</div>
                                            <div class="profession">软件工程师</div>
                                            <div class="timerange">2010-20011</div>
                                        </div>

                                    </div>
                                    <!-- <div class="timecard">
                                        <div class="school">温州第七中学</div>
                                        <div class="profession">初中</div>
                                        <div class="timerange">1998-2001</div>
                                    </div> -->
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="main-row Portfolio">
                    <div class="title">
                        <h1>Portfolio</h1>
                    </div>
                    <div class="subtitle" style=" margin-bottom: 50px;">
                        <p>项目经验</p>
                    </div>
                    <div class="content4">
                        <div class="leftsj" @click="portfolioscroll('left')"></div>
                        <div class="rightsj" @click="portfolioscroll('right')"></div>
                        <div class="horizontal-scroll-wrapper">
                            <div>
                                <div class="portfoliodiv">
                                    <div class="scrollimg"> <img src="@/assets/images/dp.png" /> </div>
                                    <div class="portfoliodes">亚运会项目中屏</div>
                                </div>

                            </div>
                            <div>
                                <div class="portfoliodiv">
                                    <div class="scrollimg"> <img src="@/assets/images/pt.png" /></div>
                                    <div class="portfoliodes">亚运会中小屏项目管理后台</div>
                                </div>

                            </div>
                            <div>
                                <div class="portfoliodiv">
                                    <div class="scrollimg"> <img src="@/assets/images/3.png" /></div>
                                    <div class="portfoliodes">nodejs后台express框架自己封装的，并封装了类似swagger的功能，可简单的调试后端接口</div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
                <div class="main-row Contactme">
                    <div class="title">
                        <h1>Contact me</h1>
                    </div>
                    <div class="subtitle" style=" margin-bottom: 50px;">
                        <p>联系我</p>
                    </div>
                    <div class="content5">
                        <div class="personinfo">
                            <div class="icon">
                                <el-icon>
                                    <Phone />
                                </el-icon>
                            </div>
                            <div class="pinfo">
                                <div class="ptitle">
                                    <h3>Phone</h3>
                                </div>
                                <div class="pvalue">13858******</div>
                            </div>
                        </div>
                        <div class="personinfo">
                            <div class="icon">
                                <el-icon>
                                    <Message />
                                </el-icon>
                            </div>
                            <div class="pinfo">
                                <div class="ptitle">
                                    <h3>E-mail</h3>
                                </div>
                                <div class="pvalue">104363251@qq.com</div>
                            </div>
                        </div>
                        <div class="personinfo">
                            <div class="icon">
                                <el-icon>
                                    <Location />
                                </el-icon>
                            </div>
                            <div class="pinfo">
                                <div class="ptitle">
                                    <h3>Location</h3>
                                </div>
                                <div class="pvalue">HangZhou</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="footer">
                <div class="description">
                    <p>本页面除了icon标签和button按钮用了element的组件，其余页面的布局、动效、展示都是用原生js和css实现，支持自适应收缩</p>
                    <p>开发环境是vue框架（vue3语法糖），样式用了scss，主要为了偷懒不用去找icon标签</p>
                </div>
            </div>
        </div>
        <div class="uptop activetab" @click="uptoTop"></div>
    </div>
</template>
<script setup>
let jumpto = () => {
    console.log(window);
    window.open('https://gitee.com/wuxiafneg588')
}
let charngetheme = () => {
    let el = document.querySelector('.bodydiv')
    let currenttheme = el.getAttribute('theme')
    el.setAttribute('theme', currenttheme === 'dark' ? 'light' : 'dark')
}
//显示隐藏右上角菜单
let showsmenu = () => {
    let el = document.querySelector('.othermenu')
    if (el.classList.contains('menuactive'))
        el.classList.remove('menuactive')
    else
        el.classList.add('menuactive')
}
//回到顶部
let uptoTop = () => {
    let el = document.querySelector(`.container`)
    // 获取滚动条当前的位置
    let scroll = el.scrollTop || document.body.scrollTop;
    console.log(scroll);
    if (scroll > 0)
        requestAnimationFrame(scrollToTop(el));


    function scrollToTop(el) {
        // 每次滚动一小段距离，直到滚动到顶部
        if (scroll > 0) {
            el.scrollTo(0, scroll);
            scroll -= 10;
            window.requestAnimationFrame(scrollToTop(el));
        } else {
            el.scrollTo(0, 0);
        }
    }
}
//滚动至相应的位置
let scrollTo = (classname, ifshowsmenu = false) => {
    const e = document.querySelector(`.${classname}`);
    e.scrollIntoView();
    if (ifshowsmenu)
        showsmenu()
}
//项目经验的左右箭头点击事件
let portfolioscroll = (redirect) => {
    //单位宽度
    let _width = document.querySelector('.portfoliodiv').clientWidth - 30
    //父元素  
    let dom = document.querySelector('.horizontal-scroll-wrapper')
    //当前在第几个元素内
    let childNo = Math.floor((dom.scrollTop + 30) / _width) + 1
    childNo = childNo > dom.childNodes.length ? dom.childNodes.length : childNo
    console.log(redirect, dom.scrollTop, _width);
    //获取滚动的下个元素
    if (redirect == 'left') {
        childNo -= 1
        childNo = childNo < 1 ? 1 : childNo
    }
    else if (redirect == 'right') {
        childNo += 1
        childNo = childNo > dom.childNodes.length ? dom.childNodes.length : childNo
    }
    else
        return
    console.log(redirect, childNo);
    const e = document.querySelector(`.horizontal-scroll-wrapper  > div:nth-child(${childNo})`);
    e.scrollIntoView();
}
//个人履历tab控制
let changeTab = (tabname) => {
    let el = document.querySelector(`.${tabname}`)
    let el_other = document.querySelector(`.${tabname == 'education' ? 'work' : 'education'}`)

    if (el.classList.value.indexOf('tabactive') >= 0) {
        el_other.classList.remove('tabactive')
    }
    else {
        el.classList.add('tabactive')
        el_other.classList.remove('tabactive')
    }

    let eltab = document.getElementById(`${tabname}tab`)
    let el_othertab = document.getElementById(`${tabname == 'education' ? 'worktab' : 'educationtab'}`)

    if (eltab.classList.value.indexOf('activetab') >= 0) {
        eltab.classList.remove('activetab')
        el_othertab.classList.add('activetab')
    }
    else {
        //eltab.classList.add('activetab')
        el_othertab.classList.add('activetab')
    }
}
//技能组件的显示控制
let showandhide = (devetype) => {
    let el = document.getElementById(devetype)

    if (el.classList.value.indexOf('hideprogress') >= 0) {
        el.classList.remove('hide')
        el.classList.remove('hideprogress')

    }
    else {
        el.classList.add('hideprogress')
        setTimeout(() => {
            el.classList.add('hide')
        })
    }
}

let checkifScroll = () => {

    let _scrollTop = document.querySelector(`.container`).scrollTop
    if (_scrollTop > 0) {
        document.querySelector(`.banner`).classList.remove('hidebottom')
        document.querySelector(`.uptop`).classList.remove('activetab')

    }
    else {
        document.querySelector(`.banner`).classList.add('hidebottom')
        document.querySelector(`.uptop`).classList.add('activetab')
    }

    requestAnimationFrame(checkifScroll)
}
//不用onmounted  用settimeout塞进异步队列等主线程页面加载完毕
setTimeout(() => {
    checkifScroll()
})

</script>
<style lang='scss' scope>
$panelheigth: 450px;
$maxwidth: 983px;
::-webkit-scrollbar {
    width: 1px;
    height: 1px;
}

::-webkit-scrollbar-button {
    width: 1px;
    height: 1px;
}
.menuactive {
    transform: translate(0, 0) !important;
    &::after {
        transform: translate(-50%, -50%) !important;
    }
    & + .menu {
        @for $i from 1 through 5 {
            div:nth-child(#{$i}) {
                transform: rotate(19deg * ($i - 1) + 189deg)
                    translate(0px, -100px) !important;
                p {
                    transform: rotate(-19deg * ($i - 1) - 189deg);
                }
            }
        }
    }
}
.smenu {
    display: none;
    .menu {
        height: 150px;
        width: 150px;
        right: 0px;
        top: 0px;
        position: absolute;

        background-color: transparent;
        & > div {
            cursor: pointer;
            box-shadow: 0px 0px 9px 1px rgba(0, 89, 84, 0.7);
            background-color: var(--theme-color);
            display: flex;
            /* margin: auto; */
            justify-content: center;
            align-items: center;
            right: 0px;
            transform: translate(50%, -50%);
            height: 30px;
            width: 30px;
            position: absolute;
            border-radius: 50%;
            //transform: translate(100%, -50%);
            font-size: 12px;
            color: #fff;
            transition: transform 0.7s cubic-bezier(0.63, -0.4, 0.67, 1.78);
        }
    }
    .othermenu {
        box-shadow: 0px 0px 9px 1px rgba(0, 89, 84, 0.7);
        cursor: pointer;
        background-color: var(--theme-color);
        height: 80px;
        width: 80px;
        position: absolute;
        z-index: 13;
        border-radius: 50%;
        overflow: hidden;
        right: 0px;
        top: 0px;
        transform: translate(50%, -50%);
        transition: transform 0.3s cubic-bezier(0.63, -0.4, 0.67, 1.78);

        &::after {
            position: absolute;
            content: "Menu";
            font-size: 12px;
            color: #fff;
            left: 50%;
            top: 50%;
            transform: translate(-100%, 10%);
        }
    }
}

.uptop {
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: var(--theme-color);
    position: fixed;
    bottom: 120px;
    right: 40px;
    position: fixed;
    overflow: hidden;
    &::after {
        top: 5px;
        position: absolute;
        margin: 0 auto;
        content: "";
        display: block;
        width: 12px;
        height: 12px;
        background-color: transparent;
        border-width: 6px 0px 0 6px;
        transform: rotate(45deg) translate(22px);
        border-style: solid;
        border-color: #fff;
        border-radius: 5px;
        animation: 3s arrow ease-in-out infinite;
    }
    @keyframes arrow {
        0% {
            transform: rotate(45deg) translate(42px, 19px);
        }
        50% {
            transform: rotate(45deg) translate(22px);
        }
        100% {
            transform: rotate(45deg) translate(2px, -21px);
        }
    }
}
.hideprogress {
    .progressgroup {
        height: 450px;
        .progress {
            display: none;
        }
    }
}
.hide {
    .progressgroup {
        height: 70px;
        transition: height 1s ease-in-out;
    }
}
.actvietitle {
    color: var(--theme-color);
}
.activetab {
    display: none;
}
.bodydiv {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    .banner {
        position: sticky;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 80px;
        position: relative;
        .nav {
            display: flex;
            max-width: $maxwidth;
            width: 100%;
            justify-content: space-around;
            .leftcontent {
                display: flex;
                align-items: center;
                // color: var(--mainfontcolor);
            }
            .rightcontent {
                ul {
                    display: flex;
                    list-style: none;
                    column-gap: 2rem;
                    // color: var(--mainfontcolor);
                    li:hover {
                        cursor: pointer;
                        color: var(--havercolor);
                    }
                }
            }
            .leftcontent:hover {
                cursor: pointer;
                color: var(--havercolor);
            }
        }
        &::after {
            content: "";
            width: calc(200% + 10px);
            height: 160px;
            position: absolute;
            z-index: -1;
            border-bottom: 1px solid gray;
            transform: scale(0.5) translate(50%, 50%);
            transform-origin: 0 0;
        }
    }
    .hidebottom {
        &::after {
            display: none;
        }
    }
    .container {
        width: 100%;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        margin-top: 1px;
        //justify-content: center;
        flex-direction: column;
        align-items: center;
        flex: 1;
        padding-top: 110px;
        scroll-behavior: smooth;
        .head {
            max-width: $maxwidth;
            min-width: var(--minWidth);
            width: 100%;
            display: flex;
            justify-content: center;
            .leftlink {
                max-width: 100px;
                width: 100px;
                display: flex;
                align-items: center;
                color: var(--theme-color);
                ul {
                    display: flex;
                    list-style: none;
                    flex-direction: column;
                    align-items: center;
                    row-gap: 2rem;
                    li {
                        cursor: pointer;
                    }
                }
            }
            .rightpanel {
                flex: 1;
                display: grid;
                grid-auto-flow: column;
                grid-template-columns: 1fr 1fr;
                grid-gap: 4rem;
                .description {
                    width: 100%;
                    p {
                        font-size: var(--smallfontsize);
                        color: #b1aed7;
                    }
                    .buttons {
                        margin-top: 50px;
                        height: 100px;
                        width: 150px;
                        display: flex;
                        flex-direction: column;
                        & > :first-child {
                            margin-bottom: 40px;
                        }
                        // justify-content: space-between;
                        .scrolldown {
                            font-size: 16px;
                            color: var(--theme-color);
                            .el-icon {
                                font-size: 27px !important;
                            }
                            &:hover {
                                transform: translateY(10px);
                                //margin-top: 10px;
                            }
                        }
                    }
                }
                .img {
                    width: 100%;
                }
            }
        }
        .main {
            max-width: $maxwidth;
            min-width: var(--minWidth);
            width: 100%;
            margin-top: 50px;
            .main-row {
                padding-top: 50px;
                .title,
                .subtitle {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    .education {
                        margin-right: 10px;
                    }
                    .work {
                        margin-left: 10px;
                    }
                    .tabactive {
                        color: var(--theme-color);
                    }
                }

                .subtitle {
                    height: 20px;
                    p {
                        font-size: var(--smallfontsize);
                        color: #b1aed7;
                    }
                }
                .content1 {
                    width: 100%;
                    display: grid;
                    height: $panelheigth;
                    grid-template-columns: 1fr 1fr;
                    .child-1 {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        img {
                            width: 90%;
                        }
                        grid-column: 1;
                    }
                    .child-2 {
                        grid-column: 2;
                        p {
                            padding: 20px;
                            font-size: var(--defaultfontsize);
                            color: var(--theme-color);
                        }
                        .express {
                            display: flex;
                            justify-content: space-evenly;
                            // color: var(--mainfontcolor);
                            .des {
                                text-align: center;

                                width: 50px;
                                margin-bottom: 10px;
                            }
                            .time {
                                text-align: center;
                                font-weight: 600;
                                font-size: var(--h2-font-size);
                            }
                        }
                        .button {
                            width: 100%;
                            margin-top: 35px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                        }
                    }
                }
                .content2 {
                    width: 100%;
                    padding: 50px;
                    .collapse {
                        width: calc(90% - 50px);
                        margin-bottom: 60px;
                        .type {
                            cursor: pointer;
                            display: flex;
                            justify-content: space-between;
                            .collapsetitle {
                                display: flex;
                                justify-content: center;
                                align-items: center;
                                height: 70px;
                            }
                            & .collapseicon {
                                color: var(--theme-color);
                                display: inline-block;
                                width: 44px;
                                font-size: 20px;
                                text-align: center;
                                transform: translateY(5px);
                            }
                        }
                        .progress {
                            margin-top: 50px;
                            margin-left: 50px;
                            .des {
                                // color: var(--mainfontcolor);
                                display: flex;
                                justify-content: space-between;
                                margin-bottom: 10px;
                            }
                            .progressvalue {
                                width: 100%;
                                position: relative;
                                .value {
                                    width: calc(100%);
                                    height: 10px;
                                    // background-color: var(--theme-color);
                                    background: linear-gradient(
                                        270deg,
                                        var(--theme-color) 0%,
                                        rgba(0, 89, 84, 0) 100%
                                    );
                                    background-size: 200% 100%;
                                    border-radius: 3px;
                                    position: absolute;
                                    animation: gradient 2s ease-in-out infinite;
                                }
                                @keyframes gradient {
                                    0% {
                                        background-position: 200%;
                                    }
                                    100% {
                                        background-position: 0%;
                                    }
                                }
                                &::after {
                                    z-index: -1;
                                    content: "";
                                    position: absolute;
                                    height: 10px;
                                    width: 100%;
                                    background-color: #dedefc;
                                    border-radius: 3px;
                                }
                            }
                        }
                    }
                    // display: flex;
                    // justify-content: center;
                }
                .content3 {
                    //width: 100%;
                    padding: 50px;
                    height: 340px;
                    .tabpanel1 {
                        position: relative;
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        .title {
                            cursor: pointer;
                        }
                    }
                    .timeline {
                        margin: 0 auto;
                        width: 80%;
                        min-width: 470px;
                        position: absolute;
                        transform: translateY(50%);
                        .timecard:nth-child(even),
                        .timecard:nth-child(odd) {
                            display: flex;
                            flex-direction: column;
                            //align-items: flex-start;
                            white-space: nowrap;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            position: relative;
                            margin: 0px 40px 0px 40px;
                            height: 85px;
                            .profession,
                            .timerange {
                                font-size: 14px;
                                color: #a4b9dc;
                            }
                            .school {
                                // color: var(--mainfontcolor);
                                font-size: 18px;
                                font-weight: bolder;
                            }
                        }
                        .timecard:nth-child(even) {
                            align-items: flex-end;
                            padding-right: 50%;
                            &::after {
                                content: "";
                                border-radius: 50% 50%;
                                width: 16px;
                                height: 16px;
                                position: absolute;
                                background-color: var(--theme-color);
                                right: 50%;
                                transform: translateX(50%);
                            }
                            &::before {
                                width: 2px;
                                height: 100%;
                                content: "";
                                position: absolute;
                                background-color: var(--theme-color);
                                transform: translateX(40px);
                            }
                        }
                        .timecard:nth-child(odd) {
                            align-items: flex-start;
                            padding-left: 50%;
                            &::after {
                                content: "";
                                border-radius: 50% 50%;
                                width: 16px;
                                height: 16px;
                                position: absolute;
                                background-color: var(--theme-color);
                                left: 50%;
                                transform: translateX(-50%);
                            }
                            &::before {
                                width: 2px;
                                height: 100%;
                                content: "";
                                position: absolute;
                                background-color: var(--theme-color);
                                transform: translateX(-40px);
                            }
                        }
                        .timecard:last-child {
                            &::before {
                                content: "";
                                background: none;
                            }
                        }
                    }
                }
                .content4 {
                    width: calc(100% - 50px);
                    padding: 0px 50px 50px 50px;
                    //padding: 50px;
                    height: 213px;
                    overflow: hidden;
                    position: relative;
                    .leftsj,
                    .rightsj {
                        cursor: pointer;
                        content: "";
                        width: 20px;
                        position: absolute;
                        height: 20px;
                        background-color: transparent;
                        border-color: var(--theme-color);
                        border-style: solid;
                        top: 50%;
                        z-index: 11;
                    }
                    .leftsj {
                        border-width: 6px 0px 0 6px;
                        transform: rotate(-45deg);
                        left: 20px;
                    }
                    .rightsj {
                        border-width: 6px 6px 0 0px;
                        transform: rotate(45deg);
                        right: 60px;
                    }

                    .horizontal-scroll-wrapper {
                        width: calc(100% + 1px);
                        padding-top: 100%;
                        height: 100vh;
                        //height: var(--scrolldivwidth);
                        overflow-y: auto;
                        overflow-x: hidden;
                        transform: rotate(-90deg) translateX(-100%);
                        transform-origin: left top;
                        scroll-behavior: smooth;
                        & > div {
                            padding: 15px;
                            //background: #cab;
                            transform: rotate(90deg)
                                translate(calc(-100%), 30px);
                            transform-origin: center;
                            width: 100%;
                            padding-top: calc(100% - 213px);
                            height: 213px;
                            position: relative;
                            .portfoliodiv {
                                position: absolute;
                                width: 100%;
                                top: 0px;
                                display: flex;
                                justify-content: space-around;
                                .scrollimg {
                                    width: 320px;
                                    height: 213px;

                                    img {
                                        width: 100%;
                                        height: 100%;
                                        object-fit: fill;
                                        border-radius: 10px;
                                    }
                                }
                                .portfoliodes {
                                    width: 320px;
                                    height: 213px;
                                }
                            }
                        }
                    }

                    .horizontal-scroll-wrapper111 {
                        max-height: 213px;
                        padding: 810px 0 0 0;
                        width: calc(810px + 1px);
                        overflow-y: auto;
                        overflow-x: hidden;
                        transform: rotate(-90deg);
                        transform-origin: right top;
                        .portfoliodiv {
                            transform: rotate(90deg);
                            transform-origin: right top;
                            width: 810px;
                            display: flex;
                            justify-content: space-around;

                            .scrollimg {
                                width: 320px;
                                height: 213px;

                                img {
                                    width: 100%;
                                    height: 100%;
                                    object-fit: fill;
                                    border-radius: 10px;
                                }
                            }
                            .portfoliodes {
                                width: 320px;
                                height: 213px;
                            }
                        }
                    }
                }
                .content5 {
                    display: flex;
                    justify-content: space-around;
                    .personinfo {
                        display: flex;
                        height: 100px;
                        .icon {
                            display: flex;
                            align-items: center;
                            width: 50px;
                            color: var(--theme-color);
                        }
                        .pinfo {
                            .pvalue {
                                font-size: var(--smallfontsize);
                                color: #b1aed7;
                            }
                        }
                    }
                }
            }
        }
        .footer {
            background-color: var(--theme-color);
            width: 100%;
            display: flex;
            justify-content: center;
            .description {
                color: #fff;
                text-align: center;
                height: 100px;
                max-width: $maxwidth;
                width: 100%;
            }
        }
    }
}
.home__blob {
    fill: var(--havercolor);
}
.home__blob-img {
    width: 220px;
}
@media screen and (max-width: 968px) {
    .banner {
        display: none !important;
    }
    .smenu {
        display: inline-block !important;
    }
}
@media screen and (max-width: 760px) {
    .horizontal-scroll-wrapper {
        & > div {
            .portfoliodiv {
                .scrollimg {
                    width: 280px !important;
                    height: 200px !important;
                }
                .portfoliodes {
                    width: 280px !important;
                    height: 200px !important;
                }
            }
        }
    }
    .uptop {
        bottom: 40px;
        right: 40px;
    }
}
@media screen and (max-width: 660px) {
    .content5 {
        flex-direction: column;
        margin: 0 auto;
        .personinfo {
            left: 50%;
            position: relative;
            transform: translateX(-20px);
        }
    }
    .content4 {
        padding: 0 !important;
        .leftsj,
        .rightsj {
            display: none !important;
        }
    }
    .horizontal-scroll-wrapper {
        & > div {
            .portfoliodiv {
                .scrollimg {
                    width: 200px !important;
                    height: 220px !important;
                }
                .portfoliodes {
                    width: 200px !important;
                    height: 220px !important;
                }
            }
        }
    }
}
@media screen and (max-width: 558px) {
    .rightpanel {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column-reverse !important;
        justify-content: center !important;
        .description {
            width: 100% !important;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
        }
        .img {
            width: 50% !important;
            margin: 0 auto;
        }
    }
    .content1 {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        .child-1 {
            img {
                width: 46% !important;
            }
        }
        .child-2 {
            p {
                margin: 10px auto;
                width: 60% !important;
                text-align: center;
            }
        }
    }
    .uptop {
        bottom: 20px;
        right: 20px;
    }
}
@media screen and (max-width: 480px) {
    .rightpanel {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column-reverse !important;
        justify-content: center !important;
        .description {
            width: 100% !important;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            flex-direction: column;
        }
        .img {
            width: 50% !important;
            margin: 0 auto;
        }
    }
}
</style>